<template>
    <div>
        <div class="index1" v-if="the_data1 !== null">
            <div class="useTil" v-for="it,i in the_data1" :key="i">
                <!-- <router-link to="/postdetails"> -->
                <div class="title1">
                    <router-link to="/usercenter">
                        <div class="title1_1">
                            <img class="img1" :src="it.img1" width="30px" alt="">
                            <!-- <i class="el-icon-arrow-down"></i> -->
                            <img class="img3" src="../../assets/img/v.png" alt="">
                                <span class="ti1" :title="it.name">{{it.name}}</span>
                            <span class="ti2">
                                <img class="img2" :src="it.grade" alt="">
                            </span>
                            <span class="ti3">{{it.time}}</span>
                        </div>
                    </router-link>
                    <!-- <div class="title1_2">
                        关注
                    </div> -->
                </div>
                <div class="title2">
                    <!-- <div class="ti1">官方</div> -->
                    <router-link to="/postdetails">
                    <div class="ti2">{{it.title}}</div>
                    </router-link>
                </div>
                <div class="title3">
                    {{it.brief}}
                </div>
                <div class="title4">
                    <div v-for="(item,i) in it.listImg" :key="i">
                        <!-- <img :src="item" alt=""> -->
                        <el-image :src="item" :preview-src-list="it.listImg"></el-image>
                    </div>
                </div>
                <div class="title5">
                            <div class="title5_1">
                                <div v-for="i in it.label" :key="i">{{i}}</div>
                            </div>
                            <div class="title5_2">
                                <div class="title5_2_1">
                                    <i class="el-icon-view"></i>
                                    <span>{{it.views}}</span>
                                </div>
                                <div class="title5_2_2">
                                    <i class="el-icon-chat-dot-round"></i>
                                    <span>{{it.comment}}</span>
                                </div>
                                <div class="title5_2_3">
                                    <i class="el-icon-thumb"></i>
                                    <span>{{it.give}}</span>
                                </div>
                            </div>
                </div>
            </div>
        </div>
        <div class="index1" v-if="the_data1 === null">
            <img src="https://bbs.mihoyo.com/_nuxt/img/noData.a3d7135.png" alt="">
        </div>
    </div>
</template>

<script>
export default {
    props: ['the_data1'],
    data() {
        return {
            
        }
    },
    methods: {
        Jump() {
            this.$router.push('/postdetails')
        }
    }
}
</script>

<style lang="less" scoped>
    a {
        color: #999;
        text-decoration: none;
    }
    .index1 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        .useTil:hover {
            .ti2 {
                            color: #00c3ff;
            }
        }
        .useTil {
            // border: 1px solid red;
            cursor: pointer;
            width: 96%;
            padding: 3px;
            border-bottom: 1px solid #999;
            margin-top: 6px;
            padding-bottom: 20px;
            .title1 {
                            margin-top: 10px;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            .title1_1 {
                                // border: 1px solid red;
                                display: flex;
                                align-items: center;
                                position: relative;
                                .img1 {
                                    border-radius: 50%;
                                    cursor: pointer;
                                }
                                span {
                                    margin-left: 6px;
                                }
                                .img3 {
                                    max-width: 9px;
                                    position: absolute;
                                    margin-left: 22px;
                                    margin-top: 20px;
                                    cursor: pointer;
                                }
                                // i {
                                //     color: white;
                                //     background-color: #00c3ff;
                                //     border-radius: 20px;
                                //     font-size: 6px;
                                //     position: absolute;
                                //     margin-left: 22px;
                                //     margin-top: 20px;
                                //     cursor: pointer;
                                // }
                                .ti1 {
                                    font-size: 10px;
                                    cursor: pointer;
                                }
                                .ti1:hover {
                                    font-size: 10px;
                                    color: #00c3ff;
                                    cursor: pointer;
                                }
                                .ti2 {
                                    // font-size: 10px;
                                    // background-color: #f3df29;
                                    // color: white;
                                    .img2 {
                                        max-width: 30px;
                                    }
                                }
                                .ti3 {
                                    color: #999;
                                    font-size: 10px;
                                }
                            }
                            // .title1_2 {
                            //     width: 10%;
                            //     display: flex;
                            //     align-items: center;
                            //     justify-content: center;
                            //     font-size: 15px;
                            //     color: white;
                            //     height: 23px;
                            //     background-color: #00c3ff;
                            //     border-radius: 20px;
                            //     cursor: pointer;
                            // }
            }
            .title2 {
                            margin-top: 10px;
                            display: flex;
                            align-items: center;
                            .ti1 {
                                width: 35px;
                                text-align: center;
                                background-color: #00c3ff;
                                font-size: 15px;
                                color: white;
                            }
                            .ti2 {
                                margin-left: 6px;
                                font-size: 15px;
                                font-weight: bolder;
                            }
                            .ti2:hover {
                                color: #00c3ff;
                                cursor: pointer;
                            }
            }
            .title3 {
                            margin-top: 5px;
                            color: #999;
                            font-size: 13px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 1;
                            overflow: hidden;
            }
            .title4 {
                            margin-top: 6px;
                            display: flex;
                            flex-wrap: wrap;
                            .el-image {
                                margin-left: -10px;
                                min-width: 35%;
                                vertical-align: middle;
                                border-radius: 6px;
                                height: 80px;
                                margin: 10px;
                            }
                            
            }
            .title5 {
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            .title5_1 {
                                display: flex;
                                div {
                                    margin-left: 10px;
                                    padding: 5px;
                                    font-size: 10px;
                                    border-radius: 20px;
                                    background-color: rgb(236, 233, 233);
                                }
                            }
                            .title5_2 {
                                display: flex;
                                color: #999;
                                span {
                                    // color: #999;
                                    font-size: 10px;
                                    display: flex;
                                }
                                i {
                                    font-size: 20px;
                                }
                                .title5_2_1 {
                                    margin-right: 10px;
                                    display: flex;
                                    align-items: center;
                                }
                                .title5_2_2 {
                                    margin-right: 10px;
                                    display: flex;
                                    align-items: center;
                                }
                                .title5_2_3 {
                                    margin-right: 10px;
                                    display: flex;
                                    align-items: center;
                                }
                            }
            }
        }
    }
</style>